/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package util.exception;

/**
 *
 * @author yidin
 */
public class ThrowExceptionClass {

    public void throwNewException() throws Exception {
        throw new Exception(message);
    }
    
    private String message;

    public void setMessage(String message) {
        this.message = message;
    }
}
